<template>
  <el-input
    @blur="blur"
    v-bind="$attrs"
    :maxlength="maxlength"
    :placeholder="attrs.placeholder || '请输入'"
    show-word-limit
  ></el-input>
</template>
<script setup>
const attrs = useAttrs()
const maxlength = computed(() => {
  return attrs.maxlength || 50
})
const emit = defineEmits(['blur'])
const blur = () => {
  emit('blur')
}
</script>
<style lang="scss" scoped></style>
